package global

import (
	"github.com/go-redis/redis/v8"
	"github.com/sirupsen/logrus"
	"go.mongodb.org/mongo-driver/mongo"
	"gorm.io/gorm"

	"awesomeProject/conf"
	"awesomeProject/logger"
)

var (
	RedisClient *redis.Client
	MongoDB     *mongo.Database
	Config      conf.Config
	Gorm        *gorm.DB
	// Viper       *viper.Viper
	// ZapLogger   *zap.Logger
)


// output logger
var Logger = logger.CreateLogger()
var LoggerTrace = logger.CreateLoggerTrace()
var LoggerDebug = logger.CreateLoggerDebug()
var LoggerInfo = logger.CreateLoggerInfo()
var LoggerWarn = logger.CreateLoggerWarn()
var LoggerError = logger.CreateLoggerError()
//var LoggerOut = logger.CreateLoggerOut()
//var LoggerOut = logger.CreateLoggerOut(logger.SetLevel(logrus.InfoLevel))
//var LoggerOut = logger.CreateLoggerOut(logger.SetLevel(logrus.WarnLevel))
//var LoggerOut = logger.CreateLoggerOut(logger.SetLevel(logrus.ErrorLevel))
//var LoggerOut = logger.CreateLoggerOut(logger.SetLevel(logrus.DebugLevel))
var LoggerOut = logger.CreateLoggerOut(logger.SetLevel(logrus.TraceLevel))
